package server.model;
import java.rmi.Remote;
import java.rmi.RemoteException;
import client.model.ClientInterface;

public interface ServerInterface extends Remote{
	public boolean register(String lastname,
		String firstname, String username,
		String password, int questionid,
		String answer) throws RemoteException;
	public String getQuestionFor(String username)
		throws RemoteException;
	public String getPassword(String username, String answer)
		throws RemoteException;
	public boolean login(String username, String password,
		ClientInterface client)throws RemoteException;
	public void logout(String username) throws RemoteException;
	public void sendTo(String username,
		String message) throws RemoteException;
	public void sentToGroup(String group,
		String message) throws RemoteException;
	public void sendMessage(/*Message message*/)
		throws RemoteException;
}